package com.cloud.feign.controller;

import com.cloud.feign.rpc.GetHello;
import com.cloud.feign.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description
 * @ClassName HelloController
 * @Author dhn
 * @date 2021.06.21 11:00
 */
@RestController
public class HelloController {
    @Autowired
    private HelloService helloService;
    @GetMapping("/hello")
    public String sayHello(String name){
        return helloService.sayHello() + " " + name;
    }
}
